package com.shop.shoppingmall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * (ShProduct)实体类
 *
 * @author makejava
 * @since 2020-09-07 17:09:21
 */
@Data
public class ShProduct implements Serializable {
    private static final long serialVersionUID = -92763307909334636L;
    /**
     * 主键
     */
    private String id;
    /**
     * 类别id
     */
    private String category1Id;
    private  String categoryName;
    private String category2Id;
    private String category3Id;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 产品图片
     */
    private String picture;
    private String photo;
    /**
     * 产品品牌
     */
    private String brand;
    /**
     * 商品规格
     */
    private Map spec;
    /**
     * 折扣金额
     */
    private Double rebatePrice;
    /**
     * 商品价格
     */
    private Double price;
    /**
     * 商品销量
     */
    private Integer sales;
    /**
     * 商品库存数量
     */
    private Integer stock;
    /**
     * 商家id
     */
    private String businessId;
    private String shopName;
    private String attributeList;
    /**
     * 商品状态  1 在售 0 下架
     */
    private Integer status;
    private  String followState;
    private  String cartNums;
    /**
     * 商品详情
     */
    private String detail;
    private  String type;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date creatTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date updateTime;

    private List<ShProductSpecs> shProductSpecs;

    private Integer sums;

    private BigDecimal addPrice;
}
